package com.itheima.entity;

import java.io.Serializable;

public class UserResult implements Serializable {
    private boolean flag;//执行结果，true为执行成功 false为执行失败
    private String message;//返回结果信息，主要用于页面提示信息
    private Object data;//返回用户名数据
    private Object img; //返回用户头像


    public UserResult() {
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Object getImg() {
        return img;
    }

    public void setImg(Object img) {
        this.img = img;
    }

    public UserResult(boolean flag, String message, Object data, Object img) {
        this.flag = flag;
        this.message = message;
        this.data = data;
        this.img = img;
    }
}
